#!/usr/bin/env python
#coding=utf-8

from aladin.database import db

class FollowCat(db.Model):
    __tablename__ = 'follow_cat'

    id       = db.Column(db.Integer, primary_key=True)
    uid      = db.Column(db.Integer, default=0)
    cat_id   = db.Column(db.Integer, default=0)
    cat_name = db.Column(db.String(32), default='')
    add_time = db.Column(db.Integer, default=0)

    def __str__(self):
        return "FollowCat => { \
id:%d, uid:%d, cat_id:%d, cat_name:'%s', add_time:%d}" % (
self.id, self.uid, self.cat_id, self.cat_name, self.add_time)

    __repr__ = __str__



